home *** CD-ROM | disk | FTP | other *** search
/ Champak 45 / Vol 45.iso / games / bee_dodg.swf / scripts / frame_1 / DoAction_2.as next >
Encoding:
Text File  |  2007-05-10  |  1.2 KB  |  42 lines

  1. function itemHandler1(obj, item)
  2. {
  3.    getUrl("http://www.shirtturtle.deviantart.com", "_blank");
  4. }
  5. function itemHandler2(obj, item)
  6. {
  7.    getUrl("http://www.armorgames.com", "_blank");
  8. }
  9. function itemHandler3(obj, item)
  10. {
  11.    getUrl("http://cdbaby.com/cd/danpaladin", "_blank");
  12. }
  13. function itemHandler4(obj, item)
  14. {
  15.    getUrl("http://www.coalyizsexy.com", "_blank");
  16. }
  17. function itemHandler5(obj, item)
  18. {
  19.    _quality = "high";
  20. }
  21. function itemHandler6(obj, item)
  22. {
  23.    _quality = "medium";
  24. }
  25. function itemHandler7(obj, item)
  26. {
  27.    _quality = "low";
  28. }
  29. root_cm = new ContextMenu();
  30. root_cm.hideBuiltInItems();
  31. aaa_cmi = new ContextMenuItem("Shirty\'s Site",itemHandler1);
  32. bbb_cmi = new ContextMenuItem("Armor Games",itemHandler2);
  33. ccc_cmi = new ContextMenuItem("Buy Dan Paladins CD now!",itemHandler3);
  34. ddd_cmi = new ContextMenuItem("Scripted by the talented Coaly",itemHandler4);
  35. eee_cmi = new ContextMenuItem("High Quality",itemHandler5);
  36. fff_cmi = new ContextMenuItem("Mid Quality",itemHandler6);
  37. ggg_cmi = new ContextMenuItem("Low Quality",itemHandler7);
  38. ccc_cmi.separatorBefore = true;
  39. eee_cmi.separatorBefore = true;
  40. root_cm.customItems.push(aaa_cmi,bbb_cmi,ccc_cmi,ddd_cmi,eee_cmi,fff_cmi,ggg_cmi);
  41. _root.menu = root_cm;
  42.